import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Content from '@/components/content/Content'
import Message from '@/components/message/Message'
import My from '@/components/my/My'
import Publish from '@/components/publish/Publish'
import Help from '@/components/publish/Help'
import NewPublish from '@/components/publish/NewPublish'
import PublishIdle from '@/components/publish/PublishIdle'
import Mode from '@/components/publish/Mode'
import HowSelected from '@/components/publish/HowSelected'
import Classify from '@/components/publish/Classify'
import ModeResell from '@/components/publish/ModeResell'
import Activities from '@/components/publish/Activities'
import ToRent from '@/components/publish/ToRent'
import Detail from '@/components/publish/Detail'

Vue.use(Router)

export default new Router({
  mode: 'history',
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      redirect: '/home/Home'
    },
    {
      path: '/home/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/content/Content',
      name: 'Content',
      component: Content
    },
    {
      path: '/publish/Publish',
      name: 'Publish',
      component: Publish
    },
    {
      path: '/message/Message',
      name: 'Message',
      component: Message
    },
    {
      path: '/my/My',
      name: 'My',
      component: My
    },
    {
      path: '/publish/Help',
      name: 'Help',
      component: Help
    },
    {
      path: '/publish/NewPublish',
      name: 'NewPublish',
      component: NewPublish
    },
    {
      path: '/publish/PublishIdle',
      name: 'PublishIdle',
      component: PublishIdle
    },
    {
      path: '/publish/Mode',
      name: 'Mode',
      component: Mode
    },
    {
      path: '/publish/HowSelected',
      name: 'HowSelected',
      component: HowSelected
    },
    {
      path: '/publish/Classify',
      name: 'Classify',
      component: Classify
    },
    {
      path: '/publish/ModeResell',
      name: 'ModeResell',
      component: ModeResell
    },
    {
      path: '/publish/Activities',
      name: 'Activities',
      component: Activities
    },
    {
      path: '/publish/ToRent',
      name: 'ToRent',
      component: ToRent
    },
    {
      path: '/publish/Detail',
      name: 'Detail',
      component: Detail
    }
  ]
})
